lib/deploy: handle FIFREEZE ENOSYS failure
authorDaniel Drake <drake@endlessm.com>
Wed, 21 Aug 2019 06:42:48 +0000 (14:42 +0800)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 21 Aug 2019 12:38:05 +0000 (12:38 +0000)
commit99d56215e65c4bf2ab0765218606f07a7550cbca
tree503068ddf90548f807cf802c0917a180f5fd6609
parent0c48769de3965b9d62688f671e95267b3f40c998
lib/deploy: handle FIFREEZE ENOSYS failure

When running under qemu, unimplemented ioctls such as FIFREEZE
return ENOSYS, and this causes the deployment to fail.

Catch this and handle it like EOPNOTSUPP.

I'm not sure if qemu's behaviour is fully correct here (or if it should
return EOPNOTSUPP) but it's trivial to handle regardless.

Closes: #1901
Approved by: cgwalters
src/libostree/ostree-sysroot-deploy.c